import requests from "../api/axios1";

export const POSTmyData = (data) => requests({ url: `/hcem/user/submitsurvey`,data,method: 'post'})  //计数
// export const getData = (id:string|number) => requests({ url: `/prod-api/hcem/user/${id}`,method: 'get'})  //计数
export const getData = (data) => requests({ url: `/hcem/user/getTemplateInfo?id=${data.id}&source=${data.source}&hospitalId=${data.hospitalId}&visitorId=${data.visitorId}`,method: 'get'})  //计数
export const getAnswer = (data) => requests({ url: `/hcem/content/getAnswerInfo/${data}`,method: 'get'})  //获得答案


// export cost totalwenjuanLi = (data) =>requests({url:`/hcem/title/list`,data,method:'post'});
// export const reqAddOrUpdateShopCart = (skuId,skuNum)=>requests({url:`/cart/addToCart/${skuId}/${skuNum}`,method:"post"})

// export const reqDeleteCartById = (skuId)=>requests({url:`/cart/deleteCart/${skuId}`,method:'delete'});
